<?php
/*[1] => stdClass Object
(
    [tid] => 219
    [vid] => 4
    [name] => 城市建设
    [description] =>
    [weight] => 0
    [depth] => 1
    [parents] => Array([0] => 195)
)*/
?>

<div class="item-list">
<ul class="categories begin"><!-- categories begin -->
<?php foreach($industry as $key=>$category):?>
  <?php if($category->parents[0] == 0 ):?>
    </ul><li class="category_list"><?php echo $category->name;?></li><ul>
  <?php else:?>
    <li class="term"><a href="<?php echo url("taxonomy/term/".$category->tid);?>"><?php echo $category->name;?></a></li>
  <?php endif;?>
<?php endforeach;?>
</ul><!-- categories end -->
</div>

<div class="item_list_bottom"></div>

